<%@page import="framework.bean.User"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ include file="securite.jsp" %>
    <% User user =(User)session.getAttribute("user");  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Ajout d'utilisateur</title>
</head>
<body>
<h1>Ajout d'utilisateur</h1>

<form action="#" name="addempl" method="POST">
<input type="hidden" name="action" value="saveuser">
	<label for="login">Login :</label>
	<input type="text" name="login" id="login"/>
<label for="pwd">Mot de passe :</label>
	<input type="password" name="pwd" id="pwd"/><br/><br/>
	<label for="nom">Nom :</label>
	<input type="text" name="nom" id="nom"/>
	<label for="prenom">Prenom :</label>
	<input type="text" name="prenom" id="prenom"/><br/><br/>
	<label for="email">Email :</label>
	<input type="email" name="email" id="email"/><br/><br/>
	<label for="profil">Profil :</label>
	<select name="profil" id="profil">
	<%if(user.getProfil() == User.PROFIL_ADMIN){ %>
	<option value="<%=User.PROFIL_ADMIN%>">Administrateur</option>
	<option value="<%=User.PROFIL_EMPL%>">Employer</option>
	<%} %>
	<option value="<%=User.PROFIL_USER%>">Client</option>
	</select>
	<input type="submit" value="Valider"/>
</form>

</body>
</html>